package com.gainloop.Listeners;

import java.util.ArrayList;
import java.util.LinkedList;

import org.alexd.jsonrpc.JSONRPCException;

import android.content.Intent;
import android.util.Log;
import android.view.View;
import android.widget.Toast;

import com.gainloop.People;
import com.gainloop.Profile;
import com.gainloop.Adapters.HelpAdapter;
import com.gainloop.Adapters.TagAdapter;
import com.gainloop.Adapters.UserAdapter;
import com.gainloop.Api.Helps;
import com.gainloop.Api.Entity.Help;
import com.gainloop.Api.Entity.User;
import com.gainloop.Utils.Constants;
import com.gainloop.Utils.Constants.ListType;

public class PeopleItemListener implements View.OnClickListener{
	User _user;
	UserAdapter _adapter;
	public PeopleItemListener(User user,  UserAdapter adapter){
		
		_user=user;
		_adapter = adapter;
	}
	
	@Override
	public void onClick(View v) {

		Intent intent=new Intent(_adapter.getContext(),Profile.class)
		.putExtra(Constants.userParam, _user.getId())
		.putExtra(Constants.listTypeParam, ListType.USER);
		_adapter.getContext().startActivity(intent);
		
		
	}
}
